package com.jvxb.manage.livable.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jvxb.manage.livable.entity.SysPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统权限表 Mapper 接口
 * </p>
 *
 * @author jvxb
 * @since 2020-06-07
 */
@Mapper
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    List<SysPermission> getPermissionBySysUserId(Long userId);

    IPage<SysPermission> getPermissionByParentId(IPage<SysPermission> page, @Param("pid") Integer pid);
}
